-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Theme] configure appearance color mode #203406
Conversation
/ci |
3 similar comments
/ci |
/ci |
/ci |
c6f0de1
to
46785d4
Compare
/ci |
1 similar comment
/ci |
1ae051c
to
4f4ce28
Compare
Thanks for the review @eokoneyo ! I see, that could be a nice enhancement, could we defer it to a separate PR? I am not sure yet where that code would live, maybe close to the rendering or theme core services. As the core team already approved this PR, I'd rather add that change separately. The current behaviour is what we have today with the ui settings so I guess our users are used to refresh the page if they tweak their system color mode setting (I guess that doesn't happen too often 😊 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from a security perspective. From a user perspective, I wish there was less white space in the Appearance modal, but I’ll defer that to you, the Shared UX team, and the design team. 🙂
Thanks for the review @azasypkin!
Yeah it's a compromise to not truncate the the warning callout title. I did reduce 20px width in dc6273e @eokoneyo I added a listener for when the system color mode changes and render a toast message to invite the user to reload the page. Could you have another look? thanks! |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
cc @sebelga |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the changes in on Prem and Serverless, when appearance is set to system and a color mode event occurs a toast is presented to the user. Thanks @sebelga for looking further into this ❤️
Thanks for the review @eokoneyo ! 👍 |
Starting backport for target branches: 8.x |
(cherry picked from commit 20d3700)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[Theme] configure appearance color mode (#203406)](#203406) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sébastien Loix","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-30T09:43:48Z","message":"[Theme] configure appearance color mode (#203406)","sha":"20d37000ef1e8014199a44b7b4a1e308dd4c2e52","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","v9.0.0","Team:SharedUX","Feature:Security/User Profile","backport:prev-minor"],"title":"[Theme] configure appearance color mode","number":203406,"url":"https://github.com/elastic/kibana/pull/203406","mergeCommit":{"message":"[Theme] configure appearance color mode (#203406)","sha":"20d37000ef1e8014199a44b7b4a1e308dd4c2e52"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203406","number":203406,"mergeCommit":{"message":"[Theme] configure appearance color mode (#203406)","sha":"20d37000ef1e8014199a44b7b4a1e308dd4c2e52"}}]}] BACKPORT--> Co-authored-by: Sébastien Loix <[email protected]>
In this PR I've updated the UI to set the appearance color mode in both stateful and Cloud/serverless.
How to test
On prem
Cloud
kibana.dev.yml
maybe_add_cloud_links.ts
fileRelease note
We have improved the UI to set the color mode in Cloud and Serverless. Allowing the "System" value which will sync the dark mode with the system value.
Screenshots
On prem
Cloud
Serverless
Fixes https://github.com/elastic/kibana-team/issues/1325.